package server;

import com.alibaba.fastjson.JSONArray;

import java.net.Socket;
import java.util.List;

/**
 * Game
 *
 * @author lx
 * @date 2024-06-08 14:54
 */
public class Game {
    private Socket me;
    private Socket other;
    private String id;
    private String otherId;
    private List<JSONArray> chessman;

    public Game() {
    }
//    public Game(Socket me, Socket other) {
//        this.me = me;
//        this.other = other;
//    }


    public Game(Socket me, Socket other, String id,String otherId,List<JSONArray> chessman) {
        this.me = me;
        this.other = other;
        this.id = id;
        this.otherId = otherId;
        this.chessman = chessman;
    }

    public String getOtherId() {
        return otherId;
    }

    public void setOtherId(String otherId) {
        this.otherId = otherId;
    }

    public List<JSONArray> getChessman() {
        return chessman;
    }

    public void setChessman(List<JSONArray> chessman) {
        this.chessman = chessman;
    }

    public Socket getMe() {
        return me;
    }

    public void setMe(Socket me) {
        this.me = me;
    }

    public Socket getOther() {
        return other;
    }

    public void setOther(Socket other) {
        this.other = other;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
